<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<%@ include file="/WEB-INF/views/include/header.jsp"%>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-cmsNews-add">
			<div class="form-group">	
				<label class="col-sm-3 control-label">内容编码：</label>
				<div class="col-sm-8">
					<input id="contentCode" name="contentCode" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">站点编号：</label>
				<div class="col-sm-8">
					<input id="siteId" name="siteId" class="form-control" value="1" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">栏目ID：</label>
				<div class="col-sm-8">
					<input id="catId" name="catId" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">发布日期：</label>
				<div class="col-sm-8">
					<input id="publishDate" name="publishDate" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">关闭日期：</label>
				<div class="col-sm-8">
					<input id="offDate" name="offDate" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">优先级：</label>
				<div class="col-sm-8">
					<input id="priority" name="priority" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">是否包含图片：</label>
				<div class="col-sm-8">
					<input id="isWithImage" name="isWithImage" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">备注：</label>
				<div class="col-sm-8">
					<input id="remark" name="remark" class="form-control" type="text">
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-2 control-label">备注：</label>
				<div class="col-sm-10">
					<textarea id="editor" style="width: 99%;height: 360px;"></textarea>
				</div>
			</div>
		</form>
	</div>
    <%@ include file="/WEB-INF/views/include/footer.jsp"%>
    <script type="text/javascript">
		var prefix = ctx + "cms/cmsNews"
		$("#form-cmsNews-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-cmsNews-add').serialize());
	        }
	    }
        var ue = UE.getEditor('editor');
	</script>
</body>
</html>
